home *** CD-ROM | disk | FTP | other *** search
/ PowerQuest 2002 / PowerQuest 2002.iso / POWERQUEST / PQ ServerMagic 4.0 / DOCS / SCRIPTS / Copy.pqs < prev    next >
Encoding:
Text File  |  2000-10-25  |  1.6 KB  |  47 lines

  1. // PartitionMagic Script File
  2.  
  3. // This script file is an example of the Copy script command.
  4.  
  5. // Scenario:
  6. // An 8 GB disk contains four partitions: A 1 GB "Win 95" partition, a 3 GB
  7. // "Apps" partition, a 1 GB hidden "Win NT" partition, and a 3 GB "Data" 
  8. // partition.
  9. //
  10. // The user has inadvertantly created the "Win NT" partition beyond the 4 GB
  11. // boot boundary for this operating system. The user wishes to copy the "Data"
  12. // partition to a second disk, copy the "Apps" partition to the end of the 
  13. // first disk and move the hidden "Win NT" partition to be next to the 
  14. // "Win 95" partition so the user can boot the operating system on the 
  15. // "Win NT" partition. The original "Apps" and "Data" partitions should be 
  16. // deleted and the "Win NT" partition resized to fill the unallocated space.
  17.  
  18. // Select the "Data" partition to be copied to disk 2
  19. Select Partition "Data"
  20.  
  21. // Select the unallocated space where the partition is to be copied
  22. Select Destination Disk 2
  23. Select Destination Unallocated Largest
  24.  
  25. // Copy the partition
  26. Copy
  27.  
  28. // Delete the original "Data" partition which is still the selected partition
  29. Select Partition "Data"
  30. Delete "Data"
  31.  
  32. // Copy the "Apps" partition to the end of disk 1
  33. Select Partition "Apps"
  34. Select Unallocated Last
  35. Copy
  36.  
  37. // Delete the original "Apps" partition which is still the selected partition
  38. Select Partition "Apps"
  39. Delete "Apps"
  40.  
  41. // Move the "Win NT" partition next to the "Win 95" partition
  42. Select Partition "Win NT"
  43. Move Left Max
  44.  
  45. // Resize the "Win NT" to use the unallocated space
  46. Resize Max
  47.